package com.ozo.easy.common.model;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * 分页响应结果
 *
 * @author ozo
 * @date 2024-12-26
 */
@Schema(description = "分页响应结果")
@Data
public class PageResult<T> {

    @Schema(description = "当前页数")
    private long pageNum;

    @Schema(description = "分页大小")
    private long pageSize;

    @Schema(description = "页数")
    private long page;

    @Schema(description = "总数")
    private long total;

    @Schema(description = "结果数据")
    private List<T> results;

}
